const {ccclass, property} = cc._decorator;
import pfutil from './../xf/util/pfutil';
//电子邮件puhalskijsemen@gmail.com
//网站 开vpn打开 http://web3incubators.com/
//电报https://t.me/gamecode999
@ccclass
export default class Cao extends cc.Component
 {

    private index:number=0;

    public next=pfutil.random(60,500);

    protected update(dt: number): void {

        this.index++;

        if(this.index>this.next)
        {
            this.index=0;

            this.next=pfutil.random(600,1000);
        }
        
        if(this.index>this.next-5)
        {
            this.node.scale=1.2
        }
        else
        {
            this.node.scale=1;
        }
        
    }
}